#pragma once

#include "GameObject.h"

enum FreezingAreaType
{
	FREEZE_MALE,
	FREEZE_FEMALE
};

class FreezingArea: public GameObject
{
public:
	FreezingArea(const char* filenameOn, const char* filenameOff, sf::Vector2f pos, FreezingAreaType fat, std::vector<const char*> dialogue1Texts, std::vector<bool> dialogue1People);
	void Draw(sf::RenderWindow& window);
	void OnTouch(Player* player);

	bool active;
	static sf::Sound* freezeSound;
	std::vector<const char*> mDialogue1Texts;
	std::vector<bool> mDialogue1People;
private:
	sf::Sprite mSprite;
	sf::Texture mOnTexture;
	sf::Texture mOffTexture;
	FreezingAreaType mFat;
	static sf::SoundBuffer* freezeSoundBuffer;
};